<?php
/*
	获取活动详情
	电商客商品列表页和商品详情页会调用本方法以获得商品详情
*/
defined('BY_JYA') or exit('error');
list($goods_id,$active_id,$optionid)=$arguments;
$seckillinfo = $this->model('model')->getSeckill($goods_id,$optionid,'','',true);
if($seckillinfo){
	if($seckillinfo['status']==1){
		$seckillinfo['rest_time']=model('jy_weishop/model')->date($seckillinfo['endtime']-TIMESTAMP);
		$seckillinfo['rest_time2']=$seckillinfo['endtime']-TIMESTAMP;
	}else{
		$seckillinfo['rest_time']=model('jy_weishop/model')->date($seckillinfo['starttime']-TIMESTAMP);
		$seckillinfo['rest_time2']=$seckillinfo['starttime']-TIMESTAMP;
	}	
	$seckillinfo['title']='秒杀活动';
}
return $seckillinfo;